import request from '@/utils/request'

// 获取收藏列表
export function getCollectionList(params) {
  return request({
    url: '/cms/collection/index',
    method: 'get',
    params
  })
}

// 添加收藏
export function addCollection(data) {
  return request({
    url: '/cms/collection/create',
    method: 'post',
    data
  })
}

// 删除收藏
export function deleteCollection(data) {
  return request({
    url: '/cms/collection/delete',
    method: 'post',
    data
  })
}